Optimal. Leaf size=131 \[ \frac{2 \tan ^5(e+f x)}{15 a^3 c^5 f}+\frac{4 \tan ^3(e+f x)}{9 a^3 c^5 f}+\frac{2 \tan (e+f x)}{3 a^3 c^5 f}+\frac{\sec ^5(e+f x)}{9 a^3 f \left (c^5-c^5 \sin (e+f x)\right )}+\frac{\sec ^5(e+f x)}{9 a^3 c^3 f (c-c \sin (e+f x))^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.170823, antiderivative size = 131, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {2736, 2672, 3767} \[ \frac{2 \tan ^5(e+f x)}{15 a^3 c^5 f}+\frac{4 \tan ^3(e+f x)}{9 a^3 c^5 f}+\frac{2 \tan (e+f x)}{3 a^3 c^5 f}+\frac{\sec ^5(e+f x)}{9 a^3 f \left (c^5-c^5 \sin (e+f x)\right )}+\frac{\sec ^5(e+f x)}{9 a^3 c^3 f (c-c \sin (e+f x))^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2736
Rule 2672
Rule 3767
Rubi steps
\begin{align*} \int \frac{1}{(a+a \sin (e+f x))^3 (c-c \sin (e+f x))^5} \, dx &=\frac{\int \frac{\sec ^6(e+f x)}{(c-c \sin (e+f x))^2} \, dx}{a^3 c^3}\\ &=\frac{\sec ^5(e+f x)}{9 a^3 c^3 f (c-c \sin (e+f x))^2}+\frac{7 \int \frac{\sec ^6(e+f x)}{c-c \sin (e+f x)} \, dx}{9 a^3 c^4}\\ &=\frac{\sec ^5(e+f x)}{9 a^3 c^3 f (c-c \sin (e+f x))^2}+\frac{\sec ^5(e+f x)}{9 a^3 f \left (c^5-c^5 \sin (e+f x)\right )}+\frac{2 \int \sec ^6(e+f x) \, dx}{3 a^3 c^5}\\ &=\frac{\sec ^5(e+f x)}{9 a^3 c^3 f (c-c \sin (e+f x))^2}+\frac{\sec ^5(e+f x)}{9 a^3 f \left (c^5-c^5 \sin (e+f x)\right )}-\frac{2 \operatorname{Subst}\left (\int \left (1+2 x^2+x^4\right ) \, dx,x,-\tan (e+f x)\right )}{3 a^3 c^5 f}\\ &=\frac{\sec ^5(e+f x)}{9 a^3 c^3 f (c-c \sin (e+f x))^2}+\frac{\sec ^5(e+f x)}{9 a^3 f \left (c^5-c^5 \sin (e+f x)\right )}+\frac{2 \tan (e+f x)}{3 a^3 c^5 f}+\frac{4 \tan ^3(e+f x)}{9 a^3 c^5 f}+\frac{2 \tan ^5(e+f x)}{15 a^3 c^5 f}\\ \end{align*}
Mathematica [A] time = 1.32107, size = 213, normalized size = 1.63 \[ \frac{\left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right ) \left (\sin \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{1}{2} (e+f x)\right )\right ) (46080 \sin (e+f x)+3500 \sin (2 (e+f x))+19456 \sin (3 (e+f x))+2800 \sin (4 (e+f x))+1024 \sin (5 (e+f x))+700 \sin (6 (e+f x))-1024 \sin (7 (e+f x))-7875 \cos (e+f x)+20480 \cos (2 (e+f x))-3325 \cos (3 (e+f x))+16384 \cos (4 (e+f x))-175 \cos (5 (e+f x))+4096 \cos (6 (e+f x))+175 \cos (7 (e+f x)))}{184320 f (a \sin (e+f x)+a)^3 (c-c \sin (e+f x))^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.081, size = 223, normalized size = 1.7 \begin{align*} 2\,{\frac{1}{f{c}^{5}{a}^{3}} \left ( -2/9\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-9}- \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-8}-5/2\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-7}-{\frac{49}{12\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{6}}}-{\frac{49}{10\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{5}}}-{\frac{35}{8\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{4}}}-{\frac{49}{16\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{3}}}-{\frac{51}{32\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{2}}}-{\frac{99}{128\,\tan \left ( 1/2\,fx+e/2 \right ) -128}}-1/40\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-5}+1/16\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{-4}-{\frac{13}{96\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{3}}}+{\frac{9}{64\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) +1 \right ) ^{2}}}-{\frac{29}{128\,\tan \left ( 1/2\,fx+e/2 \right ) +128}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.28406, size = 824, normalized size = 6.29 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.61598, size = 333, normalized size = 2.54 \begin{align*} -\frac{32 \, \cos \left (f x + e\right )^{6} - 16 \, \cos \left (f x + e\right )^{4} - 4 \, \cos \left (f x + e\right )^{2} -{\left (16 \, \cos \left (f x + e\right )^{6} - 24 \, \cos \left (f x + e\right )^{4} - 10 \, \cos \left (f x + e\right )^{2} - 7\right )} \sin \left (f x + e\right ) - 2}{45 \,{\left (a^{3} c^{5} f \cos \left (f x + e\right )^{7} + 2 \, a^{3} c^{5} f \cos \left (f x + e\right )^{5} \sin \left (f x + e\right ) - 2 \, a^{3} c^{5} f \cos \left (f x + e\right )^{5}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 2.02414, size = 293, normalized size = 2.24 \begin{align*} -\frac{\frac{3 \,{\left (435 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} + 1470 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} + 2060 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} + 1330 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 353\right )}}{a^{3} c^{5}{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 1\right )}^{5}} + \frac{4455 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{8} - 26460 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{7} + 78120 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{6} - 137340 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{5} + 157374 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 118356 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} + 57744 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - 16596 \, \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 2339}{a^{3} c^{5}{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - 1\right )}^{9}}}{2880 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]